<h1>Docker tag 命令</h1>
<p><strong>docker tag : </strong>标记本地镜像，将其归入某一仓库。</p>
<h3>语法</h3>
<pre><code class="language-Docker">docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]</code></pre>
<h3>实例</h3>
<p>将镜像ubuntu:15.10标记为 runoob/ubuntu:v3 镜像。</p>
<pre><code class="language-Docker">root@runoob:~# docker tag ubuntu:15.10 runoob/ubuntu:v3

root@runoob:~# docker images   runoob/ubuntu:v3

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE


</code></pre>
